3.2.85 \(\int \frac {(a+b \log (c x^n))^p (d+e \log (f x^r))}{x^4} \, dx\) [185]

Optimal. Leaf size=295 \[ -\frac {3^{-2-p} e e^{\frac {3 a}{b n}} r \left (c x^n\right )^{3/n} \Gamma \left (2+p,\frac {3 a}{b n}+\frac {3 \log \left (c x^n\right )}{n}\right ) \left (a+b \log \left (c x^n\right )\right )^p \left (\frac {a+b \log \left (c x^n\right )}{b n}\right )^{-p}}{x^3}+\frac {3^{-1-p} e e^{\frac {3 a}{b n}} r \left (c x^n\right )^{3/n} \Gamma \left (1+p,\frac {3 a}{b n}+\frac {3 \log \left (c x^n\right )}{n}\right ) \left (a+b \log \left (c x^n\right )\right )^{1+p} \left (\frac {a+b \log \left (c x^n\right )}{b n}\right )^{-p}}{b n x^3}-\frac {3^{-1-p} e^{\frac {3 a}{b n}} \left (c x^n\right )^{3/n} \Gamma \left (1+p,\frac {3 \left (a+b \log \left (c x^n\right )\right )}{b n}\right ) \left (a+b \log \left (c x^n\right )\right )^p \left (\frac {a+b \log \left (c x^n\right )}{b n}\right )^{-p} \left (d+e \log \left (f x^r\right )\right )}{x^3} \]

[Out]

-3^(-2-p)*e*exp(3*a/b/n)*r*(c*x^n)^(3/n)*GAMMA(2+p,3*a/b/n+3*ln(c*x^n)/n)*(a+b*ln(c*x^n))^p/x^3/(((a+b*ln(c*x^
n))/b/n)^p)+3^(-1-p)*e*exp(3*a/b/n)*r*(c*x^n)^(3/n)*GAMMA(1+p,3*a/b/n+3*ln(c*x^n)/n)*(a+b*ln(c*x^n))^(1+p)/b/n
/x^3/(((a+b*ln(c*x^n))/b/n)^p)-3^(-1-p)*exp(3*a/b/n)*(c*x^n)^(3/n)*GAMMA(1+p,3*(a+b*ln(c*x^n))/b/n)*(a+b*ln(c*
x^n))^p*(d+e*ln(f*x^r))/x^3/(((a+b*ln(c*x^n))/b/n)^p)

________________________________________________________________________________________

Rubi [A]
time = 0.16, antiderivative size = 295, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 7, integrand size = 26, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.269, Rules used = {2347, 2212, 2413, 12, 15, 19, 6692} \begin {gather*} -\frac {3^{-p-1} e^{\frac {3 a}{b n}} \left (c x^n\right )^{3/n} \left (d+e \log \left (f x^r\right )\right ) \left (a+b \log \left (c x^n\right )\right )^p \left (\frac {a+b \log \left (c x^n\right )}{b n}\right )^{-p} \text {Gamma}\left (p+1,\frac {3 \left (a+b \log \left (c x^n\right )\right )}{b n}\right )}{x^3}-\frac {e 3^{-p-2} r e^{\frac {3 a}{b n}} \left (c x^n\right )^{3/n} \left (a+b \log \left (c x^n\right )\right )^p \left (\frac {a+b \log \left (c x^n\right )}{b n}\right )^{-p} \text {Gamma}\left (p+2,\frac {3 a}{b n}+\frac {3 \log \left (c x^n\right )}{n}\right )}{x^3}+\frac {e 3^{-p-1} r e^{\frac {3 a}{b n}} \left (c x^n\right )^{3/n} \left (a+b \log \left (c x^n\right )\right )^{p+1} \left (\frac {a+b \log \left (c x^n\right )}{b n}\right )^{-p} \text {Gamma}\left (p+1,\frac {3 a}{b n}+\frac {3 \log \left (c x^n\right )}{n}\right )}{b n x^3} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[((a + b*Log[c*x^n])^p*(d + e*Log[f*x^r]))/x^4,x]

[Out]

-((3^(-2 - p)*e*E^((3*a)/(b*n))*r*(c*x^n)^(3/n)*Gamma[2 + p, (3*a)/(b*n) + (3*Log[c*x^n])/n]*(a + b*Log[c*x^n]
)^p)/(x^3*((a + b*Log[c*x^n])/(b*n))^p)) + (3^(-1 - p)*e*E^((3*a)/(b*n))*r*(c*x^n)^(3/n)*Gamma[1 + p, (3*a)/(b
*n) + (3*Log[c*x^n])/n]*(a + b*Log[c*x^n])^(1 + p))/(b*n*x^3*((a + b*Log[c*x^n])/(b*n))^p) - (3^(-1 - p)*E^((3
*a)/(b*n))*(c*x^n)^(3/n)*Gamma[1 + p, (3*(a + b*Log[c*x^n]))/(b*n)]*(a + b*Log[c*x^n])^p*(d + e*Log[f*x^r]))/(
x^3*((a + b*Log[c*x^n])/(b*n))^p)

Rule 12

Int[(a_)*(u_), x_Symbol] :> Dist[a, Int[u, x], x] /; FreeQ[a, x] &&  !MatchQ[u, (b_)*(v_) /; FreeQ[b, x]]

Rule 15

Int[(u_.)*((a_.)*(x_)^(n_))^(m_), x_Symbol] :> Dist[a^IntPart[m]*((a*x^n)^FracPart[m]/x^(n*FracPart[m])), Int[
u*x^(m*n), x], x] /; FreeQ[{a, m, n}, x] &&  !IntegerQ[m]

Rule 19

Int[(u_.)*((a_.)*(v_))^(m_)*((b_.)*(v_))^(n_), x_Symbol] :> Dist[a^(m + n)*((b*v)^n/(a*v)^n), Int[u*v^(m + n),
 x], x] /; FreeQ[{a, b, m, n}, x] &&  !IntegerQ[m] &&  !IntegerQ[n] && IntegerQ[m + n]

Rule 2212

Int[(F_)^((g_.)*((e_.) + (f_.)*(x_)))*((c_.) + (d_.)*(x_))^(m_), x_Symbol] :> Simp[(-F^(g*(e - c*(f/d))))*((c
+ d*x)^FracPart[m]/(d*((-f)*g*(Log[F]/d))^(IntPart[m] + 1)*((-f)*g*Log[F]*((c + d*x)/d))^FracPart[m]))*Gamma[m
 + 1, ((-f)*g*(Log[F]/d))*(c + d*x)], x] /; FreeQ[{F, c, d, e, f, g, m}, x] &&  !IntegerQ[m]

Rule 2347

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_)*((d_.)*(x_))^(m_.), x_Symbol] :> Dist[(d*x)^(m + 1)/(d*n*(c*x^n
)^((m + 1)/n)), Subst[Int[E^(((m + 1)/n)*x)*(a + b*x)^p, x], x, Log[c*x^n]], x] /; FreeQ[{a, b, c, d, m, n, p}
, x]

Rule 2413

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_.)*((d_.) + Log[(f_.)*(x_)^(r_.)]*(e_.))*((g_.)*(x_))^(m_.), x_Sy
mbol] :> With[{u = IntHide[(g*x)^m*(a + b*Log[c*x^n])^p, x]}, Dist[d + e*Log[f*x^r], u, x] - Dist[e*r, Int[Sim
plifyIntegrand[u/x, x], x], x]] /; FreeQ[{a, b, c, d, e, f, g, m, n, p, r}, x] &&  !(EqQ[p, 1] && EqQ[a, 0] &&
 NeQ[d, 0])

Rule 6692

Int[Gamma[n_, (a_.) + (b_.)*(x_)], x_Symbol] :> Simp[(a + b*x)*(Gamma[n, a + b*x]/b), x] - Simp[Gamma[n + 1, a
 + b*x]/b, x] /; FreeQ[{a, b, n}, x]

Rubi steps

\begin {align*} \int \frac {\left (a+b \log \left (c x^n\right )\right )^p \left (d+e \log \left (f x^r\right )\right )}{x^4} \, dx &=-\frac {3^{-1-p} e^{\frac {3 a}{b n}} \left (c x^n\right )^{3/n} \Gamma \left (1+p,\frac {3 \left (a+b \log \left (c x^n\right )\right )}{b n}\right ) \left (a+b \log \left (c x^n\right )\right )^p \left (\frac {a+b \log \left (c x^n\right )}{b n}\right )^{-p} \left (d+e \log \left (f x^r\right )\right )}{x^3}+(e r) \int \frac {3^{-1-p} e^{\frac {3 a}{b n}} \left (c x^n\right )^{3/n} \Gamma \left (1+p,\frac {3 \left (a+b \log \left (c x^n\right )\right )}{b n}\right ) \left (a+b \log \left (c x^n\right )\right )^p \left (\frac {a+b \log \left (c x^n\right )}{b n}\right )^{-p}}{x^4} \, dx\\ &=-\frac {3^{-1-p} e^{\frac {3 a}{b n}} \left (c x^n\right )^{3/n} \Gamma \left (1+p,\frac {3 \left (a+b \log \left (c x^n\right )\right )}{b n}\right ) \left (a+b \log \left (c x^n\right )\right )^p \left (\frac {a+b \log \left (c x^n\right )}{b n}\right )^{-p} \left (d+e \log \left (f x^r\right )\right )}{x^3}+\left (3^{-1-p} e e^{\frac {3 a}{b n}} r\right ) \int \frac {\left (c x^n\right )^{3/n} \Gamma \left (1+p,\frac {3 \left (a+b \log \left (c x^n\right )\right )}{b n}\right ) \left (a+b \log \left (c x^n\right )\right )^p \left (\frac {a+b \log \left (c x^n\right )}{b n}\right )^{-p}}{x^4} \, dx\\ &=-\frac {3^{-1-p} e^{\frac {3 a}{b n}} \left (c x^n\right )^{3/n} \Gamma \left (1+p,\frac {3 \left (a+b \log \left (c x^n\right )\right )}{b n}\right ) \left (a+b \log \left (c x^n\right )\right )^p \left (\frac {a+b \log \left (c x^n\right )}{b n}\right )^{-p} \left (d+e \log \left (f x^r\right )\right )}{x^3}+\frac {\left (3^{-1-p} e e^{\frac {3 a}{b n}} r \left (c x^n\right )^{3/n}\right ) \int \frac {\Gamma \left (1+p,\frac {3 \left (a+b \log \left (c x^n\right )\right )}{b n}\right ) \left (a+b \log \left (c x^n\right )\right )^p \left (\frac {a+b \log \left (c x^n\right )}{b n}\right )^{-p}}{x} \, dx}{x^3}\\ &=-\frac {3^{-1-p} e^{\frac {3 a}{b n}} \left (c x^n\right )^{3/n} \Gamma \left (1+p,\frac {3 \left (a+b \log \left (c x^n\right )\right )}{b n}\right ) \left (a+b \log \left (c x^n\right )\right )^p \left (\frac {a+b \log \left (c x^n\right )}{b n}\right )^{-p} \left (d+e \log \left (f x^r\right )\right )}{x^3}+\frac {\left (3^{-1-p} e e^{\frac {3 a}{b n}} r \left (c x^n\right )^{3/n} \left (a+b \log \left (c x^n\right )\right )^p \left (\frac {a+b \log \left (c x^n\right )}{b n}\right )^{-p}\right ) \int \frac {\Gamma \left (1+p,\frac {3 \left (a+b \log \left (c x^n\right )\right )}{b n}\right )}{x} \, dx}{x^3}\\ &=-\frac {3^{-1-p} e^{\frac {3 a}{b n}} \left (c x^n\right )^{3/n} \Gamma \left (1+p,\frac {3 \left (a+b \log \left (c x^n\right )\right )}{b n}\right ) \left (a+b \log \left (c x^n\right )\right )^p \left (\frac {a+b \log \left (c x^n\right )}{b n}\right )^{-p} \left (d+e \log \left (f x^r\right )\right )}{x^3}+\frac {\left (3^{-1-p} e e^{\frac {3 a}{b n}} r \left (c x^n\right )^{3/n} \left (a+b \log \left (c x^n\right )\right )^p \left (\frac {a+b \log \left (c x^n\right )}{b n}\right )^{-p}\right ) \text {Subst}\left (\int \Gamma \left (1+p,\frac {3 (a+b x)}{b n}\right ) \, dx,x,\log \left (c x^n\right )\right )}{n x^3}\\ &=-\frac {3^{-1-p} e^{\frac {3 a}{b n}} \left (c x^n\right )^{3/n} \Gamma \left (1+p,\frac {3 \left (a+b \log \left (c x^n\right )\right )}{b n}\right ) \left (a+b \log \left (c x^n\right )\right )^p \left (\frac {a+b \log \left (c x^n\right )}{b n}\right )^{-p} \left (d+e \log \left (f x^r\right )\right )}{x^3}+\frac {\left (3^{-2-p} e e^{\frac {3 a}{b n}} r \left (c x^n\right )^{3/n} \left (a+b \log \left (c x^n\right )\right )^p \left (\frac {a+b \log \left (c x^n\right )}{b n}\right )^{-p}\right ) \text {Subst}\left (\int \Gamma (1+p,x) \, dx,x,\frac {3 a}{b n}+\frac {3 \log \left (c x^n\right )}{n}\right )}{x^3}\\ &=-\frac {3^{-2-p} e e^{\frac {3 a}{b n}} r \left (c x^n\right )^{3/n} \Gamma \left (2+p,\frac {3 a}{b n}+\frac {3 \log \left (c x^n\right )}{n}\right ) \left (a+b \log \left (c x^n\right )\right )^p \left (\frac {a+b \log \left (c x^n\right )}{b n}\right )^{-p}}{x^3}+\frac {3^{-1-p} e e^{\frac {3 a}{b n}} r \left (c x^n\right )^{3/n} \Gamma \left (1+p,\frac {3 a}{b n}+\frac {3 \log \left (c x^n\right )}{n}\right ) \left (a+b \log \left (c x^n\right )\right )^p \left (\frac {a+b \log \left (c x^n\right )}{b n}\right )^{-p} \left (\frac {a}{b n}+\frac {\log \left (c x^n\right )}{n}\right )}{x^3}-\frac {3^{-1-p} e^{\frac {3 a}{b n}} \left (c x^n\right )^{3/n} \Gamma \left (1+p,\frac {3 \left (a+b \log \left (c x^n\right )\right )}{b n}\right ) \left (a+b \log \left (c x^n\right )\right )^p \left (\frac {a+b \log \left (c x^n\right )}{b n}\right )^{-p} \left (d+e \log \left (f x^r\right )\right )}{x^3}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.26, size = 154, normalized size = 0.52 \begin {gather*} -\frac {3^{-2-p} e^{\frac {3 a}{b n}} \left (c x^n\right )^{3/n} \left (a+b \log \left (c x^n\right )\right )^{-1+p} \left (\frac {a+b \log \left (c x^n\right )}{b n}\right )^{1-p} \left (b e n r \Gamma \left (2+p,\frac {3 \left (a+b \log \left (c x^n\right )\right )}{b n}\right )+3 \Gamma \left (1+p,\frac {3 \left (a+b \log \left (c x^n\right )\right )}{b n}\right ) \left (b d n-a e r-b e r \log \left (c x^n\right )+b e n \log \left (f x^r\right )\right )\right )}{x^3} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[((a + b*Log[c*x^n])^p*(d + e*Log[f*x^r]))/x^4,x]

[Out]

-((3^(-2 - p)*E^((3*a)/(b*n))*(c*x^n)^(3/n)*(a + b*Log[c*x^n])^(-1 + p)*((a + b*Log[c*x^n])/(b*n))^(1 - p)*(b*
e*n*r*Gamma[2 + p, (3*(a + b*Log[c*x^n]))/(b*n)] + 3*Gamma[1 + p, (3*(a + b*Log[c*x^n]))/(b*n)]*(b*d*n - a*e*r
 - b*e*r*Log[c*x^n] + b*e*n*Log[f*x^r])))/x^3)

________________________________________________________________________________________

Maple [F]
time = 0.03, size = 0, normalized size = 0.00 \[\int \frac {\left (a +b \ln \left (c \,x^{n}\right )\right )^{p} \left (d +e \ln \left (f \,x^{r}\right )\right )}{x^{4}}\, dx\]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a+b*ln(c*x^n))^p*(d+e*ln(f*x^r))/x^4,x)

[Out]

int((a+b*ln(c*x^n))^p*(d+e*ln(f*x^r))/x^4,x)

________________________________________________________________________________________

Maxima [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: RuntimeError} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*log(c*x^n))^p*(d+e*log(f*x^r))/x^4,x, algorithm="maxima")

[Out]

Exception raised: RuntimeError >> ECL says: In function CAR, the value of the first argument is  0which is not
 of the expected type LIST

________________________________________________________________________________________

Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*log(c*x^n))^p*(d+e*log(f*x^r))/x^4,x, algorithm="fricas")

[Out]

integral((e*log(f*x^r) + d)*(b*log(c*x^n) + a)^p/x^4, x)

________________________________________________________________________________________

Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*ln(c*x**n))**p*(d+e*ln(f*x**r))/x**4,x)

[Out]

Timed out

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*log(c*x^n))^p*(d+e*log(f*x^r))/x^4,x, algorithm="giac")

[Out]

integrate((e*log(f*x^r) + d)*(b*log(c*x^n) + a)^p/x^4, x)

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {\left (d+e\,\ln \left (f\,x^r\right )\right )\,{\left (a+b\,\ln \left (c\,x^n\right )\right )}^p}{x^4} \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(((d + e*log(f*x^r))*(a + b*log(c*x^n))^p)/x^4,x)

[Out]

int(((d + e*log(f*x^r))*(a + b*log(c*x^n))^p)/x^4, x)

________________________________________________________________________________________